import service from '@/utils/request'

//127.0.0.1:19090/system/classroom/list
export function getClassroomListService(params) {
    return service({
        url: "/classroom/list",
        method: "get",
        params
    });
}

export function getClassroomDetailService(classroomId) {
    return service({
        url: "/classroom/detail",
        method: "get",
        params: { classroomId },
    });
}

export function addClassroomService(params = {}) {
    return service({
        url: "/classroom/add",
        method: "post",
        data: params,
    });
}

export function delClassroomService(classroomId) {
    return service({
        url: "/classroom/delete",
        method: "delete",
        params: { classroomId },
    });
}

export function editClassroomService(params = {}) {
    return service({
        url: "/classroom/edit",
        method: "put",
        data: params,
    });
}

export function getClassroomSelectListService() {
    return service({
        url: "/classroom/selectList",
        method: "get",
    });
}